package com.ny.zmb.openapi.ysutil.common;

/**
 * 分账状态值
 */
public enum SeparateAccountsStatusEnum {
    ACCEPTED("ACCEPTED", 3, "受理成功(处理中，不表示分账成功)"),
    SPLIT_SUCCESS("SPLIT_SUCCESS", 2, "预分账成功（可视为分账成功，分账资金在T+1后入账到分账方结算账户）"),
    SUCCESS("SUCCESS", 1, "分账成功（分账资金已入账分账方）"),
    FAILED("FAILED", -1, "分账失败"),
    ;
    private final String code; // 字段不应为 static
    private final int status;
    private final String msg;

    // 构造函数
    SeparateAccountsStatusEnum(String code, int status, String msg) {
        this.code = code;
        this.status = status;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }

    public int getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return code + ": " + status + ": " + msg; // 可选，方便调试和输出
    }
}
